package day09;

public class AbstractPrc02 {
    public static void main(String[] args) {
        CBGTeacher c1 = new CBGTeacher();
        ACTTeacher a1 = new ACTTeacher();
        c1.ready();
        c1.teach();
        a1.ready();
        a1.teach();
    }
}
abstract class Teacher{
    String name;
    int age;
    public abstract void ready();
    public abstract void teach();
}
class CBGTeacher extends Teacher{

    @Override
    public void ready() {
        System.out.println("准备CGB课程");
    }

    @Override
    public void teach() {
        System.out.println("CGB开课了");
    }
}
class ACTTeacher extends Teacher{

    @Override
    public void ready() {
        System.out.println("准备ACT课程");
    }

    @Override
    public void teach() {
        System.out.println("ACT开课了");
    }
}